cmake_minimum_required(VERSION 3.15)
project(PaletteExtractionGui)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)

set(CMAKE_CXX_STANDARD_REQUIRED ON)

# Set Environment Variables
set(PROJECT_ROOT_PATH "${PROJECT_SOURCE_DIR}")
set(EXECUTABLE_OUTPUT_PATH "${PROJECT_BINARY_DIR}/bin/")
set(LIBRARY_OUTPUT_PATH "${PROJECT_BINARY_DIR}/lib/")

# Find Qt
find_package(Qt5 COMPONENTS Widgets REQUIRED)

# Add Palette File
aux_source_directory(./Palette Palette)

# Add PaletteShower File
aux_source_directory(./PaletteShower PaletteShower)

# Add PaletteExtraction File
aux_source_directory(./PaletteExtraction PaletteExtraction)

# Add Main EXE
add_executable(PaletteExtractionGui main.cpp ${Palette} ${PaletteShower} ${PaletteExtraction})

# Link Library
target_link_libraries(PaletteExtractionGui PRIVATE Qt5::Widgets)
